package main

import (
	"2212b/golang-websocket-chatroom/api"
	"2212b/golang-websocket-chatroom/config"
	"2212b/golang-websocket-chatroom/inits"
	"github.com/gin-gonic/gin"
)

func main() {
	config.InitConfig()
	inits.InitMysql()
	router := gin.Default()
	api.ToadRouters(router)
	router.Run(":8430") // 监听并在 0.0.0.0:8080 上启动服务
}
